const express = require('express');
const content = express.Router();

// 查询文章标题和id
content.get('/article',require('./content/article'))
//分页查询某篇文章下的评论
content.get('/:id/:page',require('./content/content'))

//分页查询某篇文章下的评论
content.get('/find/:id/:page',require('./content/find'))
//博主回复
content.post('/reply',require('./content/reply'))
//博主评论
content.post('/comment/:id',require('./content/bcomment'))
//用户评论
content.post('/:id/:flag',require('./content/createcontent'))
// 修改评论(仅限于博主的评论)
content.put('/:id',require('./content/edit'))
//删除评论
content.delete('/:id/:flag',require('./content/del'))

content.put('/:id/:flag',require('./content/pass'))
module.exports=content;
